<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
   <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
   <link href="/static/spiral.css" rel="stylesheet" type="text/css"/>
   <script type="text/javascript" src="/static/jquery-min.js"></script>
   <link rel="stylesheet" href="/static/spiral.tabs.css" type="text/css"/>
   <script type="text/javascript" src="/static/ui.core.js"></script>
   <script type="text/javascript" src="/static/ui.tabs.js"></script>
   <title>DebSpiral - A deb search engine</title>
  </head>
<body onload="document.search.keywords.focus()">

  <h1><a href="/" class="nodecoration">DebSpiral</a></h1>
  <br/>

  {% if not keywords %}
    <br/><br/><br/><br/><br/><br/><br/>
  {% endif %}

  <div align="center">
    <form action="/" method="get" name="search">
      <input type="text" name="keywords"/>
      <input type="submit" value="Search"/>
    </form>
  </div>

  {% if not keywords %}
    <br/>
    <h4><a href="#">DebSpiral Blog</a> - <a
        href="mailto:stratus+spiral@google.com">Send us feedback</a> - <a
        href="#">About DebSpiral</a></h4>
  {% endif %}

  {% if keywords %}

  <table cellpadding="0" cellspacing="0" width="100%" summary="results">
    <tr>
      {% if result %}
      <td>
        <br/>

        <script type="text/javascript">
          $(document).ready(function(){
              {% for package in result %}
                $("#results{{forloop.counter}} > ul").tabs();
              {% endfor %}
          });
        </script>

        {% for package in result %}
        <div id="results{{forloop.counter}}" class="spiral">
            <ul>
                <li><a
                  href="#fragment-1{{forloop.counter}}"><span>{{package.name}} {{package.version}}</span></a></li>
                <li><a href="#fragment-2{{forloop.counter}}"><span>more information</span></a></li>
            </ul>
            <div id="fragment-1{{forloop.counter}}">
                {{ package.description|truncatewords:"20" }}
            </div>
            <div id="fragment-2{{forloop.counter}}">
              <h3>{{package.name}} {{package.version}} from {{package.dist}} - <a href="{{package.mirror}}{{package.filename}}">download</a></h3>
                <p><b>Description:</b></p>
                <blockquote>{{ package.description }}</blockquote>
                <p><b>Priority:</b></p>
                <blockquote>{{ package.priority }}</blockquote>
                <p><b>Section:</b></p>
                <blockquote>{{ package.section }}</blockquote>
                <p><b>Maintainer:</b></p>
                <blockquote>{% filter escape %} {{package.maintainer}} {% endfilter %}</blockquote>
                <p><b>Architecture:</p></b>
                <blockquote>{{ package.architecture }}</blockquote>
                <p><b>Source:</p></b>
                <blockquote>{{ package.source }}</blockquote>
                <p><b>Votes:</p></b>
                <blockquote>{{ package.votes }}</blockquote>
                <p><b>Contents:</p></b>
                <blockquote>{{package.contents|truncatewords:"40"}}</blockquote>
                </ul>
            </div>
        </div>
        <br/>
        {% endfor %}
      </td>

    {% else %}
    <p class="noresults">
      No results were found, I am really sorry. DebSpiral database is still being
      populated, check back later.</p>
    </p>
    {% endif %}

    {% endif %}
    </tr>
  </table>

  {% if not keywords %}
    <br/><br/><br/><br/><br/><br/><br/>
  {% else %}
    <h4><a href="#">DebSpiral Blog</a> - <a
        href="mailto:stratus+spiral@google.com">Send us feedback</a> - <a
        href="#">About DebSpiral</a></h4>
  {% endif %}

  <img src="/static/appengine-noborder-120x30.gif" alt="google app engine logo" />

</body>
</html>
